<?php

namespace ticket\modules\frontend\models;

use Yii;

/**
 * This is the model class for table "dq_ticket_list".
 *
 * @property int $id
 * @property int $k_id 恐龙园id
 * @property string $price 价格
 * @property string $name 名称
 * @property int $status 1-显示 2-隐藏
 * @property string $create_time 创建时间
 */
class DqTicketList extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'dq_ticket_list';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['k_id', 'price', 'name', 'status', 'create_time'], 'required'],
            [['k_id', 'status'], 'integer'],
            [['price'], 'number'],
            [['create_time'], 'safe'],
            [['name'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'k_id' => 'K ID',
            'price' => 'Price',
            'name' => 'Name',
            'status' => 'Status',
            'create_time' => 'Create Time',
        ];
    }
}
